<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../templates/FoodSageTemplate.xhtml">

    <ui:define name="content">

        <f:view beforePhase="#{activityViewAllAttractionsManagedBean.initView}" />
        
        <p:dataTable var="attraction" value="#{activityViewAllAttractionsManagedBean.attractionList}" id="attractionList">  

            <f:facet name="header">  
                "#{bundle['activity.attraction.header']}"
            </f:facet>  

            <p:column headerText="Type" >  
                <h:outputText value="#{attraction.localizedActivityType}" />  
            </p:column>  

            <p:column headerText="Name" >
                <h:outputText value="#{attraction.localizedActivityName}" /> 
            </p:column>  

            <p:column headerText="Description" >
                <h:outputText value="#{attraction.localizedActivityDesc}"/> 
            </p:column>

            <p:column headerText="Area" >
                <h:outputText value="#{attraction.localizedSingaporeArea}"/>
            </p:column> 

            <p:column headerText="Opening Hour" >
                <h:outputText value="#{attraction.localizedOpeningHour}" /> 
            </p:column> 

            <p:column headerText="Closing Hour" >
                <h:outputText value="#{attraction.localizedClosingHour}" /> 
            </p:column> 

        </p:dataTable>  

    </ui:define>
</ui:composition>
